package cn.oms.stock.provider.dao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_dispensing_record")
@ApiModel(value="OrderDispensingRecord对象", description="")
public class OrderDispensingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "配药ID（新增生成）UUID（用于分期表）")
    @TableField("ID")
    private String id;

    @ApiModelProperty(value = "医嘱ID（对应医嘱表）（DR）")
    @TableField("ORDER_CODE")
    private String orderCode;

    @ApiModelProperty(value = "处方号CODE（对应处方表）（MOE202102040003）（MOE DO）")
    @TableField("PRESCRIPTION_CODE")
    private String prescriptionCode;

    @ApiModelProperty(value = "处方版本号（新增生成）")
    @TableField("PRESCRIPTION_SQL")
    private Integer prescriptionSql;

    @ApiModelProperty(value = "病例ID（对应病例表）")
    @TableField("EMR_CODE")
    private String emrCode;

    @ApiModelProperty(value = "患者ID（对应基本信息表）")
    @TableField("PATIENT_ID")
    private String patientId;

    @ApiModelProperty(value = "产品CODE（对应药品知识库的药品代码）")
    @TableField("ITEM_CODE")
    private String itemCode;

    @ApiModelProperty(value = "产品详情（对应药品详情信息、名称、大小）")
    @TableField("ITEM_DESCRIPTION")
    private String itemDescription;

    @ApiModelProperty(value = "配药类型（0为普通药师配药 1为护士补药配药）")
    @TableField("DISPENSING_TYPE")
    private Integer dispensingType;

    @ApiModelProperty(value = "发药总量")
    @TableField("SEND_QTY")
    private BigDecimal sendQty;

    @ApiModelProperty(value = "基本单位CODE")
    @TableField("BASE_UNIT_CODE")
    private String baseUnitCode;

    @ApiModelProperty(value = "基本单位(简称)（中文）")
    @TableField("BASE_UNIT_NAME_CN")
    private String baseUnitNameCn;

    @ApiModelProperty(value = "基本单位(简称)（英文）")
    @TableField("BASE_UNIT_NAME_EN")
    private String baseUnitNameEn;

    @ApiModelProperty(value = "审核人ID（对应医生表）")
    @TableField("VET_MAN_ID")
    private String vetManId;

    @ApiModelProperty(value = "审核人名称（对应医生表）")
    @TableField("VET_MAN_NAME")
    private String vetManName;

    @ApiModelProperty(value = "审方状态（0未审 1已审 2重审）")
    @TableField("VET_FLAG")
    private Integer vetFlag;

    @ApiModelProperty(value = "审方通过时间")
    @TableField("VET_PASS_TIME")
    private LocalDate vetPassTime;

    @ApiModelProperty(value = "疫苗标记（0不是 1是）")
    @TableField("VACCINE_FLAG")
    private Integer vaccineFlag;

    @ApiModelProperty(value = "捡药状态（0 未完成捡药 1已完成捡药）")
    @TableField("PICKING_FLAG")
    private Integer pickingFlag;

    @ApiModelProperty(value = "付费状态（0 未付费 1已付费）")
    @TableField("PAY_FLAG")
    private Integer payFlag;

    @ApiModelProperty(value = "发药状态（0 未发药 1已发药）")
    @TableField("SEND_FLAG")
    private Integer sendFlag;

    @ApiModelProperty(value = "发药时间")
    @TableField("SEND_TIME")
    private LocalDate sendTime;

    @ApiModelProperty(value = "创建时间（配药记录）")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
